
uint decodeId(float4 color)
{
    uint r = round(color.r * 255.0);
    uint g = round(color.g * 255.0);
    uint result = r | (g << 8);
    return result;
}
